import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-04
 * Time: 17:10
 */
public class Test7 {
    public static void main(String[] args) throws IOException {
        File src = new File("d:/test.txt");
        boolean ret = src.createNewFile();
        System.out.println(ret);
        File des = new File("d:/test1.txt");
        ret = src.renameTo(des);
        System.out.println(ret);
    }
}
